package vn.igolf.geo;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class PointList {
	private List<Point> pointList = new ArrayList<Point>();
	
	public PointList() {
	}
	
	public PointList(Point ...ps) {
		for(Point p : ps) pointList.add(p);
	}
	
	public void addPoint (Point p) {
		pointList.add(p);
	}
	
	public void removePoint (Point p) {
		pointList.remove(p);
	}
	
	public int size () {
		return pointList.size();
	}
	
	public Point getPoint (int index) {
		return pointList.get(index);
	}
	
	public PointList convexHull () {
		PointList ret = new PointList();
		
		// TODO
		
		return ret;
	}
}
